function switchCheckboxes( state, className )
{
	elements = document.getElementsByTagName( 'input' );
	for( i=0; i<elements.length; i++ )
	{
		element	= elements[i];
		if( element.type == 'checkbox' && element.className == className && element.checked != state )
		{
			element.checked = !element.checked;
		}
	}
}
